package edu.unr.cater.npap.client.managed.ui;

import com.google.web.bindery.requestfactory.gwt.ui.client.ProxyRenderer;
import edu.unr.cater.npap.client.proxy.ContactProxy;
import edu.unr.cater.npap.client.proxy.TransportationAgencyProxy;
import java.util.Set;

public class TransportationAgencyProxyRenderer extends ProxyRenderer<TransportationAgencyProxy> {

    private static edu.unr.cater.npap.client.managed.ui.TransportationAgencyProxyRenderer INSTANCE;

    protected TransportationAgencyProxyRenderer() {
        super(new String[] { "agencyName" });
    }

    public static edu.unr.cater.npap.client.managed.ui.TransportationAgencyProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new TransportationAgencyProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(TransportationAgencyProxy object) {
        if (object == null) {
            return "";
        }
        return object.getAgencyName() + " (" + object.getAgencyName() + ")";
    }
}
